<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>h5的swiper结构</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" href="https://cdn.bootcss.com/Swiper/4.5.0/css/swiper.css" />
		<script src="https://cdn.bootcss.com/Swiper/4.5.0/js/swiper.min.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<style type="text/css">
			*{
				margin: 0;
				padding: 0;
			}
			.swiper-wrapper{
				height: 100vh;
			}
			.swiper-slide{
				height: 100vh;
			}
		</style>
		<div class="swiper-container">
		    <div class="swiper-wrapper">
		        <div class="swiper-slide">Slide 1</div>
		        <div class="swiper-slide">Slide 2</div>
		        <div class="swiper-slide">Slide 3</div>
		    </div>
		</div>
		<script type="text/javascript">
			var mySwiper = new Swiper ('.swiper-container',{
				direction: 'vertical', // 垂直切换选项
				loop:true
			})
		</script>
	</body>
</html>
